package com.gaohe.controller;

import com.gaohe.common.Result;
import com.gaohe.pojo.CardTemp;
import com.gaohe.service.CardTempService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/cardTemp")
public class CardTempController {
    @Autowired
    private CardTempService cardTempService;

    /**
     * 查询卡片模板列表
     * @return
     */
    @GetMapping("/getCardTempList")
    public Result listCardTemp(){
        List<CardTemp> tempList = cardTempService.list();
        return Result.success(tempList);
    }
}
